﻿String.prototype.Trim  =  function()
  {
      return  this.replace(/(^\s*)|(\s*$)/g,"");  
  }
	
function goto()
{
    if(check()){
        document.form1.submit();
    }
}

function check()
{
    if(document.all.form1.title.value.Trim()==""){
        alert("请填写标题!");
        return false;
    }

    return true;
}
	
function back()
{
    document.all.form1.action="NewsList.htm";
    document.form1.submit();
}